﻿@inherits BDialogBase
@using Element.Markdown.IconHandlers

<BForm @ref="form" Value="this.Image">
    <BFormItem TValue="string" Name="@nameof(ImageModel.Alt)" Label="ALT">
        <BInput TValue="string"></BInput>
    </BFormItem>
    <BFormItem TValue="string" Name="@nameof(ImageModel.Title)" Label="标题">
        <BInput TValue="string"></BInput>
    </BFormItem>
    <BFormItem TValue="string[]" IsRequired="true" Name="@nameof(ImageModel.Urls)" Label="地址">
        <BMarkdownFileUpload DisableUpload="DisableUpload" UploadUrl="@UploadUrl" Tip="@Tip" UploadType="UploadType.Image" AllowExtensions="AllowExtensions" Height="Height" Width="Width" MaxSize="MaxSize"></BMarkdownFileUpload>
    </BFormItem>
    <BFormActionItem Style="text-align:right">
        <BButton Type="@ButtonType.Primary" @onclick="Submit">确定</BButton>
    </BFormActionItem>
</BForm>